package com.lazy.lib.net.tcp.server;

import java.util.concurrent.Executors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * 封装tcp服务端
 * 
 * @author luodan
 *
 */
public class TcpServer {
    private final static Logger logger = LoggerFactory.getLogger(TcpServer.class);

    protected String serverIp;
    protected int serverPort;
    
    //public TcpServer(int port, ChannelHandler myHandler) {
//        this.port = port;
//        this.myHandler = myHandler;
//        // Configure the server.
//        bootstrap = new ServerBootstrap(
//                new NioServerSocketChannelFactory(
//                        Executors.newCachedThreadPool(),
//                        Executors.newCachedThreadPool()));
//        if (myHandler != null && myHandler instanceof TcpBytesServerHandler) {
//            ((TcpBytesServerHandler)myHandler).setBootStrap(bootstrap);
//        }
    //}
}
